<template>
  <!-- 登录页头部 start -->
  <!-- <div class="login-top">
    <img src="../../img/logo2.png" class="icon-head" alt="" />
    <div class="login-top-centent">欢迎登录 CharTen</div>
    <div class="title-name"></div>
  </div> -->
  <!-- 登录页头部 end -->
  <!-- 登录页面主体 start -->

  <div class="home">
    <div class="home-body" @click.native="jump()">
      <div class="login-top-centent" style="padding-bottom: 15px; font-size: 50px">
        让我们开始洽谈
      </div>
      <div class="login-top-centent">Let's CharTen</div>
      <!-- <a-input class="userinput">
        <template #addonAfter>
          <ArrowRightOutlined />
        </template>
      </a-input> -->
      <div class="student-name-box">
        <input
          type="text"
          value=""
          placeholder="点击开始对话"
          @click.native="jump()"
        />
        <ArrowRightOutlined />
      </div>
    </div>
  </div>

  <!-- <div class="login-body"> -->
  <!-- 用户名 -->
  <!-- <div class="field">
      <svg-icon icon-name="wo" class-name="icon" />
      <input type="text" placeholder="请输入用户名" v-model="username" />
    </div> -->
  <!-- 密码 -->
  <!-- <div class="field">
      <svg-icon icon-name="mima" class-name="icon" />
      <input type="password" placeholder="请输入密码" v-model="password" />
    </div> -->
  <!-- 记住密码 -->
  <!-- <div class="field-check">
      <input
        type="checkbox"
        class="checkbox"
        id="remberpwd"
        value="记住密码"
        v-model="remberpwd"
      />
      <label class="checkbox-lable" for="remberpwd">记住密码</label>
    </div> -->
  <!-- 登录按钮 -->
  <!-- <button class="login" @click="login">登录</button> -->

  <!-- </div> -->
  <!-- 登录页面主体 end -->
</template>

<script lang="ts" setup>
import { onMounted, reactive, toRefs, watch } from "vue";
import { SettingOutlined, ArrowRightOutlined } from "@ant-design/icons-vue";
//引入路由
import { useRouter } from "vue-router";
const router = useRouter();
let jump = () => {
  console.log(window.open('http://218.93.51.206:7530/login'));
}
</script>

<style scoped>
/**头部内容 */
.student-name-box,
.student-id-box {
  box-sizing: border-box;
  width: 420px;
  height: 46px;
  border: 2px solid #ddd;
  border-radius: 45px;
  margin-top: 27px;
  margin-left: 50%;
  transform: translateX(-50%);
  background-color: #f1f1f1;
}
input {
  box-sizing: border-box;
  margin-bottom: 1px;
  outline: none;
  width: 384px;
  height: 39px;
  padding-left: 20px;
  color: #85858b;
  border-radius: 45px;
  border: 0;
  background-color: #f1f1f1;
}
.student-name-box div:first-child,
.student-id-box div:first-child {
  box-sizing: border-box;
  float: left;
  width: 32px;
  height: 32px;
  background: rgb(233, 236, 239);
  background-position: 8px 10px;
  border-right: 2px solid #ddd;
}
.student-name-box img,
.student-id-box img {
  width: 16px;
  height: 16px;
  margin: 8px;
}

input::placeholder {
  color: #85858b !important;
  opacity: 1; /* Firefox */
}

.home {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  /* background: #f0f2f5; */
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-body {
  margin: 0 auto;
  margin-top: -70px;
  width: 60%;
  /* max-width: 450px; */
  background: #ffffff;
  /* box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1); */
  opacity: 1;
  border-radius: 10px;
  /* padding-top: 150px; */
}

.login-top-centent {
  padding-top: 10px;
  padding-bottom: 50px;
  text-align: center;
  /* color: #ffffff; */
  font-size: 40px;
}
.userinput {
  width: 425px;
  height: 50px;
  margin: 0 auto;
  margin-top: 30px;
  /* border-bottom: 1px solid rgb(204, 203, 203); */
  /* 图标输入框对齐 */
  display: flex;
  align-items: center;
  padding: 5px 0;
}
:deep() .ant-input-wrapper {
  height: 40px;
  border-radius: 15px;
}
.userinput input {
  border: 0;
  font-size: 18px;
}
/**文本头部内容 */
.icon-head {
  width: 200px;
  float: clear;
}

.title-name {
  text-align: center;
  color: #ffffff;
  font-size: 18px;
}
/**主体内容 */
.login-body {
  margin: 0 auto;
  margin-top: -20px;
  width: 60%;
  max-width: 450px;
  background: #ffffff;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  opacity: 1;
  border-radius: 10px;
  padding: 60px 0;
  height: calc(100% - 100px);
}
.field {
  width: 70%;
  margin: 0 auto;
  margin-top: 30px;
  border-bottom: 1px solid rgb(204, 203, 203);
  /* 图标输入框对齐 */
  display: flex;
  align-items: center;
  padding: 5px 0;
}
.icon {
  font-size: 22px;
  /* color: rgba(0, 0, 240, 0.5); */
  color: #282829;
}
input {
  border: 0;
  font-size: 18px;
}
input::-webkit-input-placeholder {
  /* color: rgba(0, 0, 240, 0.5); */
  color: #282829;
  font-size: 13px;
}
input:focus {
  /* 边框不用border，用outline */
  outline: 0px;
}
/* 多选框 */
.field-check {
  margin: 0 auto;
  margin-top: 10px;
  width: 70%;
  text-align: right;
}
.checkbox-lable {
  padding-left: 5px;
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
  font-size: 13px;
}
.checkbox {
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 2px;
}
/* css 复选框 */
input[type="checkbox"] {
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]::after {
  position: absolute;
  top: 0;
  background-color: #fff;
  color: #fff;
  width: 14px;
  height: 14px;
  display: inline-block;
  visibility: visible;
  padding-left: 0px;
  text-align: center;
  content: " ";
  border-radius: 2px;
  box-sizing: border-box;
  border: 1px solid #ddd;
}

input[type="checkbox"]:checked::after {
  content: "";
  background-color: rgba(94, 94, 233, 0.5);
  /* border-color: rgba(94, 94, 233, 0.5); */
}

input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 3px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  z-index: 1;
}

/* 登录按钮 */
.login {
  display: block;
  width: 70%;
  margin: 0 auto;
  margin-top: 30px;
  border: 0px;
  height: 40px;
  border-radius: 10px;
  /* background: rgba(0, 0, 240, 0.5); */
  background: #282829;
  color: #ffffff;
}
button:focus {
  /* 边框不用border，用outline */
  outline: 0px;
}
</style>
